#pragma once
#include "cocos2d.h"
#include "Tooth.h"

using namespace cocos2d;

#define TOOTH_X 70
#define TOOTH_Y 100
#define TOOTH_HEIGHT 120
#define TOOTH_OFFSET 5

#define MAX_TEETH 5	//todo
#define TEETH_Z_ORDER 5

typedef enum {
	TOOTH_TYPE_1,
	TOOTH_TYPE_2,
	TOOTH_TYPE_3,
	TOOTH_TYPE_4,
	TOOTH_TYPE_5,
	TOOTH_TYPE_6,
	TOOTH_TYPE_7,
	TOOTH_TYPE_8,
	TOOTH_TYPE_9,
	TOOTH_TYPE_10,
	NUM_OF_TOOTH_TYPE,
} EToothType;

class ToothManager
{
public:
	ToothManager(CCLayer* layer);
	~ToothManager(void);
	void initialize(void);
	void teethAmountUpgrade(void);
	void showTeeth(void);
	void getTeethReady(void);
	CCArray* getTeeth() {return _teeth;}
	void removeTooth(Tooth* tooth);
	void startShoot();
	void stopShoot();
	void updateTeeth();

private:
	CCSize _winSize;
	CCArray* _teeth;
	CCLayer* _layer;
	EToothType _teethType[MAX_TEETH];
	int _currentMaxTeeth;
	CCPoint _positions[MAX_TEETH];

	void initToothPosition(void);
};

